package it.polimi.meteocal.ejb.eventmanagement;

import java.util.Date;

import javax.persistence.Id;

public class EventDTO {
		
	@Id
    private int eventid;
	
	
    private String name;
	
	
	private String description;

	
    private String place;
	
	
	private String insideOutside;
	
	
	private Date begin;
	
	
	private Date end;
	
	

	public int getEventid() {
		return eventid;
	}



	public void setEventid(int eventid) {
		this.eventid = eventid;
	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public String getDescription() {
		return description;
	}



	public void setDescription(String description) {
		this.description = description;
	}



	public String getPlace() {
		return place;
	}



	public void setPlace(String place) {
		this.place = place;
	}



	public String getInsideOutside() {
		return insideOutside;
	}



	public void setInsideOutside(String insideOutside) {
		this.insideOutside = insideOutside;
	}



	public Date getBegin() {
		return begin;
	}



	public void setBegin(Date begin) {
		this.begin = begin;
	}



	public Date getEnd() {
		return end;
	}



	public void setEnd(Date end) {
		this.end = end;
	}



	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof EventDTO)) {
		return false;
		}
		EventDTO pbdto = (EventDTO) obj;

		return (this.eventid == pbdto.eventid);

		}

	
}
